﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SearchCustomer.ascx.cs" Inherits="webUserControl_SearchCustomer" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<div class="code">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
    </asp:ScriptManagerProxy>
<table style="width:80%; line-height:25px; font-size:12px;">
    <tr>
        <td style="text-align:right; padding-right:5px; width:120px;">客户名称：</td>
        <td style=" padding-left:5px;">
            <asp:TextBox ID="tbCustomerName" runat="server" ></asp:TextBox>
                </td>
    </tr>
    <tr>
        <td style="text-align:right; padding-right:5px; width:120px;">地区：</td>
        <td style=" padding-left:5px;">
            <asp:DropDownList ID="ddlCityID" runat="server" AutoPostBack="True" 
        onselectedindexchanged="ddlCityID_SelectedIndexChanged">
    </asp:DropDownList>
    <asp:DropDownList ID="ddlDistrictID" runat="server" Visible="False">
    </asp:DropDownList>&nbsp;</td>
    </tr>
    <tr>
        <td style="text-align:right; padding-right:5px; width:120px;">地址：</td>
        <td style=" padding-left:5px;">
            <asp:TextBox ID="tbAddress" runat="server"></asp:TextBox>
                </td>
    </tr>
        <tr>
        <td style="text-align:right; padding-right:5px; width:120px;">电话：</td>
        <td style=" padding-left:5px;">
            <asp:TextBox ID="tbTelPhone" runat="server"></asp:TextBox>
                </td>
    </tr>
        <tr>
        <td style="text-align:right; padding-right:5px; width:120px;">联络人：</td>
        <td style=" padding-left:5px;">
            <asp:TextBox ID="tbLinkMan" runat="server"></asp:TextBox>
                </td>
    </tr>
        <tr>
        <td style="text-align:right; padding-right:5px; width:120px;">业务范围：</td>
        <td style=" padding-left:5px;">
            <asp:TextBox ID="tbYeWu" runat="server"></asp:TextBox>
                </td>
    </tr>

        <tr>
        <td style="text-align:right; padding-right:5px;">&nbsp;</td>
        <td style=" padding-left:5px;">
            <asp:Button ID="btnSub" runat="server" onclick="btnSub_Click" Text="搜索" />
                </td>
    </tr>
</table>
</div>
   <br/>
    <asp:GridView ID="GridView1" runat="server"  
         AutoGenerateColumns="False" BackColor="White" 
        BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
        DataKeyNames="ID"  Font-Size="12px" 
        HorizontalAlign="Center" Width="80%">
        <FooterStyle BackColor="White" ForeColor="#000066" />
        <RowStyle ForeColor="#000066" HorizontalAlign="Center" />
        <Columns>
            <asp:BoundField DataField="ID" HeaderText="编号" InsertVisible="False" 
                ReadOnly="True" SortExpression="ID" />
            <asp:HyperLinkField DataNavigateUrlFields="ID" 
                DataNavigateUrlFormatString="~/SearchSupplier.aspx?cID={0}" 
                DataTextField="CustomerName" DataTextFormatString="{0}" HeaderText="客户名称" />
            <asp:BoundField DataField="LinkMan" HeaderText="联络人" SortExpression="LinkMan" />
            <asp:BoundField DataField="Addre" HeaderText="地址" SortExpression="Addre" />
            <asp:BoundField DataField="TelPhone" HeaderText="电话" 
                SortExpression="TelPhone" />
                <asp:BoundField DataField="isTotalPoint" HeaderText="总点位" 
                SortExpression="isTotalPoint" />
                <asp:BoundField DataField="isOKPoint" HeaderText="已占用点位" 
                SortExpression="isOKPoint" />
                <asp:BoundField DataField="outTime" HeaderText="截至时间" 
                SortExpression="outTime" DataFormatString="{0:d}" />
        </Columns>
        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
    </asp:GridView>
